package com.kgc.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class UserRoom {
    private Integer id;
    private Integer userId;
    private Integer roomId;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date intime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date outtime;

    private String username; // 使用者名称

    public UserRoom() {
    }
    public UserRoom(Integer userId, Integer roomId) {
        this.userId = userId;
        this.roomId = roomId;
    }
    public UserRoom(Integer id, Integer userId, Integer roomId, Date intime, Date outtime, String username) {
        this.id = id;
        this.userId = userId;
        this.roomId = roomId;
        this.intime = intime;
        this.outtime = outtime;
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public Date getIntime() {
        return intime;
    }

    public void setIntime(Date intime) {
        this.intime = intime;
    }

    public Date getOuttime() {
        return outtime;
    }

    public void setOuttime(Date outtime) {
        this.outtime = outtime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
